Skip to content

Conversation

@surajkota
Copy link
Contributor

@surajkota surajkota commented May 14, 2021

Description of changes

  • model and endpoint config tests missed in last refactoring PR
  • fix wait_resource in adopt_endpoint test
  • log boto3 errors
  • increase delete timeout
  • add owner aliases

testing

using codebuild

@surajkota surajkota requested review from akartsky and mbaijal May 14, 2021 00:43
Comment on lines +38 to 41
except botocore.exceptions.ClientError as error:
logging.error(
f"Could not find Data Quality Job Definition with name {job_definition_name}"
f"Could not find Data Quality Job Definition with name {job_definition_name}. Error {error}"
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if, for some reason, boto3 fails with a different exception other than botocore.exceptions.ClientError
then it will silently fail

i think we should have one more except block below this

Eg:

try:
  do some stuff 
except botocore.exceptions.ClientError as error:
  logging.error()
except:
  logging.error("something else went wrong")

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Specific type of exceptions will go to block, otherwise it will throw exception as usual

Wont fail silently

@RedbackThomson RedbackThomson changed the title refractor tests and bug fixes refactor tests and bug fixes May 14, 2021
@ack-bot
Copy link
Collaborator

ack-bot commented May 14, 2021

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: akartsky, surajkota
To complete the pull request process, please assign vijtrip2 after the PR has been reviewed.
You can assign the PR to them by writing /assign @vijtrip2 in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@surajkota surajkota merged commit 62c11b5 into aws-controllers-k8s:main May 14, 2021
ryansteakley pushed a commit to ryansteakley/sagemaker-controller that referenced this pull request May 17, 2021
* refactor tests and bug fixes

* fix wait_resource

* log describe error, increase delete timeout, refractor tests

* add owners alias
ryansteakley pushed a commit to ryansteakley/sagemaker-controller that referenced this pull request May 18, 2021
* refactor tests and bug fixes

* fix wait_resource

* log describe error, increase delete timeout, refractor tests

* add owners alias
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants